package org.example.shoppingsystem.service;

import org.example.shoppingsystem.model.Product;

import java.sql.SQLException;
import java.util.List;

public interface ProductService {
/**
 * 查询所有未删除的商品信息
 * @return 商品列表
 * @throws SQLException 数据库操作异常
 */
List<Product> findAllProducts() throws SQLException;
    boolean addProduct(Product product) throws SQLException;
    boolean isProductNameExists(String name) throws SQLException;
}